<?php

class Application_Form_AddComment extends Zend_Form {
    public function init() {
        $this->setMethod('post');

        $this->addElement('textarea', 'comment', array(
            'label'         => 'Comment:',
            'required'      => true,
            'filters'       => array('StringTrim'),
            'id'            => "new_comment",
            'rows'          => 2
        ));

        $this->addElement('submit', 'submit', array(
            'label'         => 'Post',
            'required'      => false,
            'ignore'        => true,
            'id'            => "post_comment"
        ));
    }
}

